package com.wtwd.device.model;

import com.wtwd.device.constant.SeparatorConstant;

import java.io.Serializable;

/**
 * 设置心率预警值
 */
public class HeartRateWarning implements Serializable {

    private static final long serialVersionUID = 179633754546L;

    private int minHeartRate;

    private int maxHeartRate;

    public int getMinHeartRate() {
        return minHeartRate;
    }

    public void setMinHeartRate(int minHeartRate) {
        this.minHeartRate = minHeartRate;
    }

    public int getMaxHeartRate() {
        return maxHeartRate;
    }

    public void setMaxHeartRate(int maxHeartRate) {
        this.maxHeartRate = maxHeartRate;
    }

    public String serialization(){
       return   String.valueOf(minHeartRate)+ SeparatorConstant.CMD_BODY_SEGMENTATION+maxHeartRate;
    }

    @Override
    public String toString() {
        return "HeartRateWarning{" +
                "minHeartRate=" + minHeartRate +
                ", maxHeartRate=" + maxHeartRate +
                '}';
    }
}
